package be.xios.projectquiz.game;

import java.io.Serializable;
import java.util.ArrayList;

/// <summary>
/// Deze klasse is een arraylist met al de players in
/// </summary>
/// <author>Sebastian Kubski</author>
public class PlayerList extends ArrayList<Player> implements Serializable{

	private static final long serialVersionUID = 1L;
	private ArrayList<Player> playerList;
	
	//Constructor
	public PlayerList() {
		this.playerList = new ArrayList<Player>();
	}

	
	
	//Controle PlayerList vol met verwachte spelers blokken
	public boolean ZitHetSpelVol() {
		//blokken = 2 spelers max!
		if ( playerList.size()== 2) {
			return true;
		}
		else {
			return false;
		}
	}
}
